home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSLLLLCCCCaaaannnncccceeeellllJJJJoooobbbb((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSLLLLCCCCaaaannnncccceeeellllJJJJoooobbbb((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- SLCancelJob - cancels a queued printer job
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssppppoooooooollll....hhhh>>>>
-
- iiiinnnntttt SSSSLLLLCCCCaaaannnncccceeeellllJJJJoooobbbb((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****jjjjoooobbbb____iiiidddd,,,, uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt ssssppppoooooooolllleeeerrrr,,,,
- ccccoooonnnnsssstttt cccchhhhaaaarrrr ****pppprrrriiiinnnntttteeeerrrr))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _S_L_C_a_n_c_e_l_J_o_b cancels the printer job currently queued for printing. Any
- job on the queue which is owned by the user may be canceled regardless of
- whether that job was submitted using _l_i_b_s_p_o_o_l functions or spooling
- system commands.
-
- _j_o_b__i_d Specifies the ID of the job to be canceled. This ID is
- available in the _S_L_P_r_i_n_t_J_o_b structure _j_o_b__i_d field if the
- job was submitted to a System V spooling system using
- _l_i_b_s_p_o_o_l. The job ID can also be obtained by examining the
- queue for the desired printer. Unfortunately the BSD
- spooling system does not provide a job ID when a print job
- is submitted. To obtain a job ID under the BSD spooling
- system the print queue must be examined.
-
- _s_p_o_o_l_e_r This parameter specifies the spooling system to use when
- cancelling the job. The possible spoolers that may be
- specified are System V (SSSSLLLL____SSSSPPPPOOOOOOOOLLLLEEEERRRR____SSSSYYYYSSSSVVVV ) or BSD
- (SSSSLLLL____SSSSPPPPOOOOOOOOLLLLEEEERRRR____BBBBSSSSDDDD). If the default spooling system is to be
- used, this parameter should be specified as
- SSSSLLLL____SSSSPPPPOOOOOOOOLLLLEEEERRRR____NNNNOOOONNNNEEEE. The _s_p_o_o_l_e_r parameter is provided so that
- the cancelling of jobs on different spooling systems does
- not require setting a new default spooling system before
- each call to _S_L_C_a_n_c_e_l_J_o_b. Note that specifying a spooling
- system to _S_L_C_a_n_c_e_l_J_o_b does not affect the setting of the
- default spooling system.
-
- _p_r_i_n_t_e_r Specifies the printer on whose queue the job resides. If
- this parameter is NNNNUUUULLLLLLLL, the default printer is assumed.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- 0 is returned if execution was successful. -1 is returned and _S_L_e_r_r_n_o is
- set if an execution error has occurred.
-
- EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
- _S_L_C_a_n_c_e_l_J_o_b will fail under the following circumstances.
-
- SL_ERR_FIND_SPOOLER An error occurred while attempting to determine
- the available printer spooling systems.
-
- SL_ERR_NO_SPOOLERS There are no printer spooling systems available.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSLLLLCCCCaaaannnncccceeeellllJJJJoooobbbb((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSLLLLCCCCaaaannnncccceeeellllJJJJoooobbbb((((3333))))
-
-
-
- SL_ERR_SPOOLER_UNKNOWN The spooling system specified is not available.
-
-
- SL_ERR_SPOOLER_ERROR A printer spooling system error has occurred.
-
- SL_ERR_NO_JOBID The print job ID specified is either a NULL
- pointer, an empty string ("") or a string
- consisting entirely of whitespace.
-
- When canceling a print job under the BSD spooling system, _S_L_C_a_n_c_e_l_J_o_b
- will also fail under the following circumstances.
-
- SL_ERR_BAD_PRINTER_NAME The printer name specified is either an empty
- string (""), or a string consisting entirely of
- whitespace.
-
- NNNNOOOOTTTTEEEESSSS
- 1. No confirmation that the job was found and canceled is provided.
-
- 2. Under System V spooling the _p_r_i_n_t_e_r parameter is ignored and can be
- set to NNNNUUUULLLLLLLL. This is because the printer for the job is determined
- from the job ID.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- SLSubmitJob(3), SLGetQueue(3), SLPerror(3), libspool(3), cancel(1)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-